package com.yonyou.gmcc.gateway.web.dao;

import com.yonyou.gmcc.gateway.web.entity.TmResource;
import com.yonyou.gmcc.gateway.web.entity.TmResourceExample;
import com.yonyou.gmcc.gateway.web.entity.TmResourceVo;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

public interface TmResourceMapper extends Mapper<TmResource> {
    List<TmResourceVo> selectResourceWithRole(TmResourceExample example);
    
    int countByExample(TmResourceExample example);

    int deleteByExample(TmResourceExample example);

    List<TmResource> selectByExample(TmResourceExample example);

    int updateByExampleSelective(@Param("record") TmResource record, @Param("example") TmResourceExample example);

    int updateByExample(@Param("record") TmResource record, @Param("example") TmResourceExample example);
}